package esempi;

import java.util.*;

public class ProvatoArray {
	public static void main(String[] args) {
		List<Object> lo = new ArrayList<Object>();
		lo.add("casa");
		lo.add("zorro");
		lo.add("fuoco");
		System.out.println(lo);
		String[] as = new String[2];
		String[] as1 = lo.toArray(as);
		System.out.println(Arrays.toString(as1) + "as1==as " + (as1 == as));
		Object[] a1 = lo.toArray();
		System.out.println(Arrays.toString(as1));
	}

}
